Current Location: Home> Function Categories> getcwd

getcwd

Get the current working directory
Name:getcwd
Category:Directory functions
Programming Language:php
One-line Description:Return to the current working directory.

Definition and usage

getchwd() function returns the current working directory.

Example

Get the current working directory:

 <?php
echo getcwd ( )
?>

result:

 /home/php

grammar

 getcwd();
Similar Functions
Popular Articles